package com.github.data_manage.domain.po

import cn.idev.excel.annotation.ExcelIgnore
import jakarta.persistence.*
import java.math.BigDecimal
import java.time.LocalDate

@Entity
@Table(name = "t_fund_depth_research_contrast_attach_quarterly_info")
open class FundDepthResearchContrastAttachQuarterlyInfo {

    constructor(fundId: Int?, contrastId: Int?, year: Int?, quarter: Int?) {
        this.fundId = fundId
        this.year = year
        this.quarter = quarter
        this.contrastId = contrastId
    }

    constructor()


    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @ExcelIgnore
    open var id: Long? = null

    @Column(name = "fund_id")
    open var fundId: Int? = null

    open var year: Int? = null

    open var quarter: Int? = null

    open var contrastId: Int? = null

    open lateinit var dataMonth: LocalDate

    @Column(columnDefinition = "decimal(10,4)")
    open var alphaQuarterly: BigDecimal? = BigDecimal.ZERO

    @Column(columnDefinition = "decimal(10,4)")
    open var betaQuarterly: BigDecimal? = BigDecimal.ZERO

    @Column(columnDefinition = "decimal(10,4)")
    open var alphaLongQuarterly: BigDecimal? = BigDecimal.ZERO

    @Column(columnDefinition = "decimal(10,4)")
    open var alphaShortQuarterly: BigDecimal? = BigDecimal.ZERO

    @Column(columnDefinition = "decimal(10,4)")
    open var betaLongQuarterly: BigDecimal? = BigDecimal.ZERO

    @Column(columnDefinition = "decimal(10,4)")
    open var betaShortQuarterly: BigDecimal? = BigDecimal.ZERO


}